package com.zzyl.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;  

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "物联网设备信息")  
public class Device implements Serializable {  

    @ApiModelProperty(value = "设备ID", example = "1")  
    private Long id;  
  
    @ApiModelProperty(value = "物联网设备ID", example = "device12345")
    private String iotId;  
  
    @ApiModelProperty(value = "绑定位置", example = "办公室")
    private String bindingLocation;  
  
    @ApiModelProperty(value = "位置类型 0：随身设备 1：固定设备", example = "0")
    private Integer locationType;  
  
    @ApiModelProperty(value = "物理位置类型 0楼层 1房间 2床位", example = "1")
    private Integer physicalLocationType;  
  
    @ApiModelProperty(value = "设备名称", example = "智能门锁")
    private String deviceName;
  
    @ApiModelProperty(value = "备注名称", example = "门禁设备")
    private String nickname;  
  
    @ApiModelProperty(value = "产品key", example = "prod-key-123")
    private String productKey;  
  
    @ApiModelProperty(value = "产品名称", example = "智能安防系统")
    private String productName;  
  
    @ApiModelProperty(value = "位置备注", example = "一楼大厅")
    private String deviceDescription;  
  
    @ApiModelProperty(value = "产品是否包含门禁，0：否，1：是", example = "1")
    private Integer haveEntranceGuard;  
  
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;  
  
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;  
  
    @ApiModelProperty(value = "创建人id", example = "1001")
    private Long createBy;  
  
    @ApiModelProperty(value = "更新人id", example = "1001")
    private Long updateBy;  
  
    @ApiModelProperty(value = "备注", example = "这是一个测试设备")
    private String remark;  

}